package com.easylinkin.linkappapi.keywork.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author HuangLei
 * @since 2025-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rail_keywork_list")
public class KeyworkList extends Model<KeyworkList> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    /**
     * 分类/作业内容
     */
    @TableField("content_name")
    private String contentName;

    /**
     * 1分类，2作业内容
     */
    @TableField("level")
    private Integer level;

    /**
     * 上级id
     */
    @TableField("parent_id")
    private Long parentId;

    @TableField("tenant_id")
    private String tenantId;

    @TableField("is_used")
    private Integer isUsed;

    @TableField("update_time")
    private Date updateTime;

    @TableField("remark")
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
